package com.base_java.service;

import com.github.pagehelper.PageInfo;
import com.base_java.common.ServerResponse;
import com.base_java.pojo.Shipping;

/**
 * @description:
 * @author: mingtai
 * @createDate: 23:00 2020/4/3
 * @version: 1.0
 */

public interface IShippingService {

    ServerResponse add(Integer userId, Shipping shipping);

    ServerResponse<String> del(Integer userId, Integer shippingId);

    ServerResponse update(Integer userId, Shipping shipping);

    ServerResponse<Shipping> select(Integer userId, Integer shippingId);

    ServerResponse<PageInfo> list(Integer userId, int pageNum, int pageSize);
}
